package com.itheima.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
//@TableName("tb_user")
public class User {
    //@TableId(type= IdType.ASSIGN_ID)
    private Long id;
    @TableField("mingzi")
    private String name;
    @TableField(select = false)
    private String password;
    private Integer age;
    private String tel;

//   @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private String newFiled;

}
